const { createHash } = require('crypto');

class SHA256 {
  constructor() {}
  hash(plain) {
    const hash = createHash('sha256');
    return hash.update(plain).digest('hex').toUpperCase();
  }
}

module.exports = SHA256;
